package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication //使SpringBoot可以扫描本类所在包和其子包
@ServletComponentScan//使servlet Filter Listener可以直接通过@WebServlet @WebFilter @WebListener注解自动注册，无需其他代码
@EnableAspectJAutoProxy   //开启aop
@EnableTransactionManagement //开启事务
@EnableRedisHttpSession //使session存入redis, 解决session共享问题
@EnableCaching //开启缓存注解功能
public class ReggieTakeOutApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieTakeOutApplication.class, args);
        log.info("项目启动了........");
    }
}
